package com.sjx.lib_network.impl

import com.sjx.lib_network.bean.DailyWeatherResponse
import com.sjx.lib_network.bean.HourlyWeatherResponse
import com.sjx.lib_network.bean.WeatherResponse
import com.sjx.lib_network.http.HttpUrl
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * FileName:
 * Founder: sjx
 * Profile:
 */
interface HttpImplService {

    @GET(HttpUrl.WEATHER_NOW)
    fun queryNow(@Query("location") location: String, @Query("key") key: String
    ): Call<WeatherResponse>

    @GET(HttpUrl.WEATHER_24H)
    fun queryHourly(@Query("location") location: String, @Query("key") key: String
    ): Call<HourlyWeatherResponse>

    @GET(HttpUrl.WEATHER_7D)
    fun queryDaily(@Query("location") location: String, @Query("key") key: String
    ): Call<DailyWeatherResponse>

}